package com.online.demo.entity;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author sda1
 * @since 2020-11-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TContent implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String title;

    private String img; // 标题图

    private Integer uid;

    @TableField("typeId")
    private Long typeid;

    private String content;     // 存txt到服务器上。 这里保存url

    @TableField("createTime")
    private LocalDateTime createtime;

    private Integer views;

    private String link;

    private Integer likes;

    // user.score >= content.score 开能查看对应的内容
    public Integer score;

    // 简介   -- 和 title  img 一起显示在主页
    @TableField("briefInfo")
    public String briefinfo;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }



    public Integer getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public String getImg() {
        return img;
    }

    public Integer getUid() {
        return uid;
    }

    public Long getTypeid() {
        return typeid;
    }

    public String getContent() {
        return content;
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public Integer getViews() {
        return views;
    }

    public Integer getLikes() {
        return likes;
    }

    public Integer getScore() {
        return score;
    }

    public String getLink() {
        return link;
    }

    public String getBriefinfo() {
        return briefinfo;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public void setTypeid(Long typeid) {
        this.typeid = typeid;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public void setViews(Integer views) {
        this.views = views;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public void setBriefinfo(String briefinfo) {
        this.briefinfo = briefinfo;
    }
}
